#include <iostream>

/**
 * 非法二进制
 */
int main(){
    int n;
    std::cin >> n;

    if (n&(n-1)){
        std::cout << "no" << std::endl;
    }else{
        std::cout << "yes" << std::endl;
    }


    return 0;
}